<?php


	@include '../conn/conn.php';
	@include '../islogin.php';

@$user = $_SESSION['username'];
$sql="select userno ,username,permission,open,phone from tb_userlist ";
$result=mysqli_query($link, $sql);
//var_dump($sql);

if (mysqli_num_rows($result) > 0)  {
 echo '{"code":0,"msg":"","count":30,"data":[';
    $i=1;
    while($row = mysqli_fetch_assoc($result)) {
        $i++;
        echo json_encode($row, JSON_UNESCAPED_UNICODE);
        if($i<mysqli_num_rows($result)+1){
            echo ",";
        }

    }
    echo "]}";
}
mysqli_close($link);
?>